import 'dart:convert' as convert;

import 'package:logger/logger.dart';


/// 输出Log工具类
class Log {
  Log._();

  static String _tag = '';
  static bool _isDebug = false;

  static void init({required bool isDebug, required String tag}) {
    _isDebug = isDebug;
    _tag = tag;
  }

  static void d(String msg,{String? tag}){
    if(!_isDebug) return;
    String mTag = tag ?? _tag;
    print('$mTag: $msg');
  }
}
